Skip to content

Add device information in the report json file #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2021

Conversation

michael-smirnov
Copy link
Contributor

@michael-smirnov michael-smirnov commented Apr 22, 2021

  • device keyword added to the report of each benchmark to recognize which device was used
  • Intel GPU hardware information included in the report if such GPU exists on the system

Example of result.json:
hardware section

"GPU Intel #1": {
            "Type": "GPU",
            "Profile": "FULL_PROFILE",
            "Version": "OpenCL 3.0 NEO",
            "Name": "Intel(R) Iris(TM) Pro Graphics P580 [0x193a]",
            "Vendor": "Intel(R) Corporation",
            "C version": "OpenCL C 3.0",
            "Driver version": "21.13.1943"
 }

example of benchmark output:

{
            "library": "sklearn",
            "algorithm": "kmeans",
            "stage": "training",
            "device": "gpu",
            "input_data": {
                "data_format": "pandas",
                "data_order": "F",
                "data_type": "float64",
                "dataset_name": "synthetic_blobs",
                "rows": 1000000,
                "columns": 50,
                "n_clusters": 10
            },
            "algorithm_parameters": {
                "algorithm": "auto",
                "copy_x": true,
                "init": "random",
                "max_iter": 100,
                "n_clusters": 10,
                "n_init": 1,
                "n_jobs": "deprecated",
                "precompute_distances": "deprecated",
                "random_state": null,
                "tol": 0.0,
                "verbose": 0
            },
            "time[s]": 82.32738574920222,
            "davies_bouldin_score": 4.552364858732523
}

@michael-smirnov michael-smirnov added enhancement New feature or request gpu labels Apr 22, 2021
@michael-smirnov michael-smirnov self-assigned this Apr 22, 2021
utils.py Outdated
start_idx = lsgpu_info.find(':', start_idx) + 1
end_idx = lsgpu_info.find('Platform ', start_idx)
platform_info = parse_lscpu_lscl_info(lsgpu_info[start_idx:end_idx])
hw_params.update({f'GPU Intel platform {platform_num + 1}': platform_info})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why info about platform_num ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to device_num

@michael-smirnov michael-smirnov merged commit f58fac4 into master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gpu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants